package com.chan.domain;

import com.chan.common.annotation.Excel;
import com.chan.common.core.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 项目集对象 cd_program
 *
 * @author chan
 * @date 2024-04-08
 */
public class CdProgram extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 项目集名称 */
    @Excel(name = "项目集名称")
    private String name;

    /** 代号（英文编码） */
    @Excel(name = "代号", readConverterExp = "英=文编码")
    private String code;

    /** 项目集描述 */
    @Excel(name = "项目集描述")
    private String desc;

    /** 状态（1新建，2进行中，3完成） */
    @Excel(name = "状态", readConverterExp = "0=新建,1=进行中,2=完成,3=暂停")
    private Integer status;

    /** 排序 */
    @Excel(name = "排序")
    private Integer rank;

    /**成员/负责人*/
    private String members;

    /**类型（1项目集 2 项目 3 需求任务）*/
    private Integer type;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setDesc(String desc)
    {
        this.desc = desc;
    }

    public String getDesc()
    {
        return desc;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setRank(Integer rank)
    {
        this.rank = rank;
    }

    public Integer getRank()
    {
        return rank;
    }

    public String getMembers() {
        return members;
    }

    public void setMembers(String members) {
        this.members = members;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("parentName", getParentName())
            .append("code", getCode())
            .append("desc", getDesc())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("rank", getRank())
            .append("members", getMembers())
            .append("type", getType())
            .toString();
    }
}
